package com.homewoek;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @Author:Ren2048
 * @Date:2021/8/27
 * @Description:com.homewoek
 * @Version:1.8.0_261
 */
public class ListTest {
    public static void main(String[] args) {
        ArrayList<String> al1 = new ArrayList<>();
        ArrayList<String> al2 = new ArrayList<>();
        ArrayList<String> al3 = new ArrayList<>();
        HashMap<String,ArrayList> hm = new HashMap<String,ArrayList>();
        al1.add("张三");
        al1.add("男");
        al1.add("18岁");
        al2.add("李四");
        al2.add("男");
        al2.add("17岁");
        al3.add("王五");
        al3.add("男");
        al3.add("20岁");
        hm.put("14",al1);
        hm.put("19",al2);
        hm.put("18",al3);
        for (String s: hm.keySet()){
            System.out.println("年级:" + s + hm.get(s));
        }
    }
}
